//
// Created by freehyan on 9/9/2016.
//
#include "com_scu_freehyan_pbojni_GLESJni.h"
#include <GLES3/gl3.h>

/*
 * Class:     com_scu_freehyan_pbojni_GLESJni
 * Method:    glReadPixelsPBOJNI
 * Signature: (IIIIIII)V
 */
JNIEXPORT void JNICALL Java_com_scu_freehyan_pbojni_GLESJni_glReadPixelsPBOJNI
(JNIEnv * env, jclass c, jint x, jint y, jint width, jint height, jint format, jint type, jint offset){
    glReadPixels(x, y, width, height, format, type, (void*)offset);
}

/*
 * Class:     com_scu_freehyan_pbojni_GLESJni
 * Method:    glBufferDataPBO
 * Signature: (IIII)V
 */
JNIEXPORT void JNICALL Java_com_scu_freehyan_pbojni_GLESJni_glBufferDataPBO
        (JNIEnv * env, jclass c, jint target, jint size, jint offsetPBO, jint usage){
    glBufferData(target, size, (void*)offsetPBO, usage);
}